<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2019/3/20
 * Time: 13:42
 */
namespace App\Enum;

class ActivityEnum
{
    /**
     * @desc 定义活动配置的状态值
     */
    const ACTIVITY_STATUS_INVALIDATE        = 0;    // 无效
    const ACTIVITY_STATUS_VALID             = 1;    // 有效

    /**
     * @desc 定义活动配置的结算周期
     */
    const ACTIVITY_SETTLEMENT_TYPE_WEEK     = 1;    // 周
    const ACTIVITY_SETTLEMENT_TYPE_MONTH    = 2;    // 月

    /**
     * @desc 奖励对象
     */
    const ACTIVITY_REWARD_USER_GENERAL      = 1;    // 普通用户
    const ACTIVITY_REWARD_USER_MEMBER       = 2;    // 会员用户
    const ACTIVITY_REWARD_USER_SHAREHOLDER  = 3;    // 股东用户

    /**
     * @desc 奖励金额类型
     */
    const ACTIVITY_REWARD_UNITS_TOTAL       = 1;    // 元
    const ACTIVITY_REWARD_UNITS_SINGLE      = 2;    // 元/人

    /**
     * @desc 活动类型
     */
    const ACTIVITY_TYPE_INVITE              = 1;    // 邀请
    const ACTIVITY_TYPE_LIKE                = 2;    // 点赞

    /**
     * @var array 活动类型转文案
     */
    public static $activity_type_conversion = [
        self::ACTIVITY_TYPE_INVITE  => '邀请活动',
        self::ACTIVITY_TYPE_LIKE    => '集赞活动',
    ];
}